package cn.neusoft.service.Impl;

import cn.neusoft.domain.Commodity_Warehouse;
import cn.neusoft.mapper.Commodity_WarehouseMapper;
import cn.neusoft.service.Commodity_WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description:TODO
 * @Author:邢旭升
 * @Date:2023/6/26 下午 02:10
 **/
@Service
public class Commodity_WarehouseServiceImpl implements Commodity_WarehouseService {
    @Autowired
    private Commodity_WarehouseMapper commodityWarehouseMapper;


    @Override
    public Commodity_Warehouse getCommodityWarehouse(String commodityId, Long warehouseId) {
        return commodityWarehouseMapper.getCommodityWarehouse(commodityId, warehouseId);
    }

    @Override
    public int updateCommodityWarehouse(Commodity_Warehouse commodityWarehouse) {
        return commodityWarehouseMapper.updateCommodityWarehouse(commodityWarehouse);
    }

    @Override
    public void addCommodityWarehouse(Commodity_Warehouse commodityWarehouse) {
        commodityWarehouseMapper.addCommodityWarehouse(commodityWarehouse);
    }

    @Override
    public int deleteCommodityWarehouse(String commodityId, Long warehouseId) {
        return commodityWarehouseMapper.deleteCommodityWarehouse(commodityId, warehouseId);
    }

    @Override
    public Long GetWarehouseStock(Long warehouseId) {
        return commodityWarehouseMapper.GetWarehouseStock(warehouseId);
    }


}